with open('E:/test.csv') as f:
    first_line = f.readline().rstrip('\n')
str_list = first_line.split('|')
for field in str_list:
    print(len(field))


